package com.gupao.javavip.netty.push.protocol;

import com.gupao.javavip.netty.push.api.Request;
import lombok.extern.apachecommons.CommonsLog;
import org.msgpack.MessagePack;

import java.io.IOException;

@CommonsLog
public class RequestDecoder extends AbstractMessagePackDecoder<Request> {
    @Override
    protected Request decodeByMessagePack(MessagePack messagePack, byte[] array) throws IOException {
        return messagePack.read(array, Request.class);
    }
}
